package com.nstar.countdown.view.main.impl
{
	import mx.rpc.IResponder;

	public class RespondTraditional implements IResponder
	{
		private var callback:Function;
		
		public function RespondTraditional(callback:Function)
		{
			this.callback = callback;
		}

		public function result(data:Object):void
		{
			callback.call(null,data);
		}
		
		public function fault(info:Object):void
		{
			throw new Error(info);
		}
		
	}
}